<?php

/*
 * This file is part of the yuki package.
 * Copyright (c) 2011 olamedia <olamedia@gmail.com>
 *
 * Licensed under The MIT License
 * 
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

/**
 * yStderrLogRoute
 *
 * @package yuki
 * @subpackage log
 * @version SVN: $Id: yStderrLogRoute.php 149 2011-02-20 06:58:24Z olamedia@gmail.com $
 * @revision SVN: $Revision: 149 $
 * @date $Date: 2011-02-20 06:58:24 +0000 (Sun, 20 Feb 2011) $
 * @author olamedia
 * @license http://www.opensource.org/licenses/mit-license.php MIT
 */
class yStderrLogRoute extends yStreamLogRoute{
    public function setUp(){
        //set_error_handler??
        if (defined('STDERR')){
            $this->_handle = constant('STDERR'); // PHP >= 5.2.1
            $this->_closeRequired = false;
        }else{
            $this->_handle = fopen('php://stderr', 'w');
        }
    }
}

